import { defHttp } from '/@/utils/http/axios'

import { AssetVO, AssetSO } from './model/assetModel'
import { BasicFetchResult, BasicPageParams } from '/@/api/model/baseModel'

enum Api {
  pageAsset = '/asset/page',
}

export const pageAsset = (data: BasicPageParams<AssetSO>) => {
  return defHttp.post<BasicFetchResult<AssetVO>>(
    { url: Api.pageAsset, data },
    { errorMessageMode: 'none' },
  )
}
